<?php

use yii\db\Migration;

/**
 * Class m180107_151038_alter_project_investigation_file
 */
class m180106_151038_alter_instation_message_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->addColumn('instation_message','package_id',$this->integer()->comment('资产包id，默认为0'));
        $this->addColumn('instation_message','project_id',$this->integer()->comment('单项目id'));
    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m180106_151038_alter_instation_message_table cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180107_151038_alter_project_investigation_file cannot be reverted.\n";

        return false;
    }
    */
}
